import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('./pages/Home'),
    meta: { title: '首页' }
  }, {
    path: '/appointment',
    component: () => import('./pages/Appointment'),
    meta: { title: '预约' }
  }, {
    path: '/appointment/items',
    component: () => import('./pages/Appointment/items'),
    meta: { title: '选择项目' }
  }, {
    path: '/appointment/beauticians',
    component: () => import('./pages/Appointment/beauticians'),
    meta: { title: '选择美容师' }
  }, {
    path: '/appointment/info',
    component: () => import('./pages/Appointment/info'),
    meta: { title: '预约信息' }
  }, {
    path: '/order',
    component: () => import('./pages/Order'),
    meta: { title: '选择项目' }
  }, {
    path: '/personal',
    component: () => import('./pages/Personal'),
    meta: { title: '我的' }
  }, {
    path: '/personal/membership_card',
    component: () => import('./pages/cards/MembershipCards'),
    meta: { title: '我的会员卡' }
  }, {
    path: '/personal/membership_card/record',
    component: () => import('./pages/cards/MembershipCardsRecords'),
    meta: { title: '划卡记录' }
  }, {
    path: '/personal/course_card',
    component: () => import('./pages/cards/CourseCards'),
    meta: { title: '我的疗程卡' }
  }, {
    path: '/personal/course_card/record',
    component: () => import('./pages/cards/CourseCardsRecords'),
    meta: { title: '划卡记录' }
  }, {
    path: '/personal/records',
    component: () => import('./pages/Records'),
    meta: { title: '消费记录' }
  }
]

export default new VueRouter({
  routes
})
